$(function() {
	//填充年份下拉框
	createCpYearSelect(document.getElementById("cpYear"));
	//填充教练计划角色
	createCpRoleSelect(document.getElementById("cpRleId"));
	focusById();
});

function showErrMsg(id,msg){
	$("#" + id + "Tip").text(msg);
	$("#" + id + "Msg").show();
}

function hideMsg(id) {
	$("#" + id + "Msg").hide();
}

function focusById(){
	$("#cpYear").focus(function(){
		hideMsg("cpYear");
	});
	$("#cpRleId").focus(function(){
		hideMsg("cpRleId");
	});
	$("#phone").focus(function(){
		hideMsg("phone");
	});
	$("#email").focus(function(){
		hideMsg("email");
	});
	$("#company").focus(function(){
		hideMsg("company");
	});
}